/*
 * Copyright (c) 2015 Roc authors
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#include "roc_audio/freq_estimator_decim.h"

const roc::audio::sample_t roc::audio::fe_decim_h_gain = 1.041106363770361f;

const roc::audio::sample_t roc::audio::fe_decim_h[fe_decim_len] = {
    2.171816595e-05f,  0.001551611349f,   0.0005492189666f,  0.0006585246301f,
    0.0007556059863f,  0.0008557052352f,  0.0009566077497f,  0.00105746265f,
    0.001156042097f,   0.001251217443f,   0.001340582385f,   0.001422821078f,
    0.001495413715f,   0.001557081006f,   0.001605384634f,   0.001639141934f,
    0.001656142762f,   0.001655626693f,   0.001635767752f,   0.001596169546f,
    0.00153552962f,    0.001454023994f,   0.001350906445f,   0.001226948923f,
    0.001082253992f,   0.0009182369104f,  0.0007358249859f,  0.0005372641608f,
    0.0003243022948f,  9.991019033e-05f,  -0.0001335729467f, -0.0003724064736f,
    -0.0006139134057f, -0.000853834732f,  -0.001088955207f,  -0.001314683235f,
    -0.001527603134f,  -0.001722955029f,  -0.001897459268f,  -0.002046865411f,
    -0.002168231178f,  -0.002257786226f,  -0.002313192002f,  -0.002331318334f,
    -0.002310532611f,  -0.002248884644f,  -0.002146301325f,  -0.002002278809f,
    -0.001817821641f,  -0.001593292691f,  -0.001330877072f,  -0.001032887027f,
    -0.00070385047f,   -0.0003474208061f, 3.207824193e-05f,  0.0004301121517f,
    0.0008386967238f,  0.001251969952f,   0.001665653544f,   0.002068829956f,
    0.002457238268f,   0.002822061069f,   0.003156311577f,   0.00345301209f,
    0.003704900853f,   0.003905905643f,   0.004049625248f,   0.00413125474f,
    0.004145852756f,   0.004090175498f,   0.003961127717f,   0.003757563187f,
    0.003478640225f,   0.003125529503f,   0.002699935576f,   0.002205569064f,
    0.001646643854f,   0.001029419829f,   0.0003607070539f,  -0.0003507778456f,
    -0.001095934655f,  -0.001863716752f,  -0.002643183107f,  -0.003421482397f,
    -0.00418635644f,   -0.004923689179f,  -0.005620298441f,  -0.006261858623f,
    -0.0068346099f,    -0.007324781734f,  -0.007719407789f,  -0.008005576208f,
    -0.008171834052f,  -0.008207269013f,  -0.008102368563f,  -0.007848716341f,
    -0.007440029643f,  -0.006871134974f,  -0.006138926838f,  -0.005241762381f,
    -0.004180506337f,  -0.002957628109f,  -0.00157801155f,   -4.807108053e-05f,
    0.001623484422f,   0.003426218173f,   0.005347401369f,   0.007373005617f,
    0.00948741287f,    0.01167352311f,    0.01391246822f,    0.01618501171f,
    0.01847111061f,    0.02074959502f,    0.02299895883f,    0.02519862913f,
    0.02732633427f,    0.02936225012f,    0.0312856175f,     0.03307762742f,
    0.03471996263f,    0.03619609028f,    0.03749086335f,    0.03859099001f,
    0.03948510438f,    0.04016397893f,    0.04062053561f,    0.04085000232f,
    0.04085000232f,    0.04062053561f,    0.04016397893f,    0.03948510438f,
    0.03859099001f,    0.03749086335f,    0.03619609028f,    0.03471996263f,
    0.03307762742f,    0.0312856175f,     0.02936225012f,    0.02732633427f,
    0.02519862913f,    0.02299895883f,    0.02074959502f,    0.01847111061f,
    0.01618501171f,    0.01391246822f,    0.01167352311f,    0.00948741287f,
    0.007373005617f,   0.005347401369f,   0.003426218173f,   0.001623484422f,
    -4.807108053e-05f, -0.00157801155f,   -0.002957628109f,  -0.004180506337f,
    -0.005241762381f,  -0.006138926838f,  -0.006871134974f,  -0.007440029643f,
    -0.007848716341f,  -0.008102368563f,  -0.008207269013f,  -0.008171834052f,
    -0.008005576208f,  -0.007719407789f,  -0.007324781734f,  -0.0068346099f,
    -0.006261858623f,  -0.005620298441f,  -0.004923689179f,  -0.00418635644f,
    -0.003421482397f,  -0.002643183107f,  -0.001863716752f,  -0.001095934655f,
    -0.0003507778456f, 0.0003607070539f,  0.001029419829f,   0.001646643854f,
    0.002205569064f,   0.002699935576f,   0.003125529503f,   0.003478640225f,
    0.003757563187f,   0.003961127717f,   0.004090175498f,   0.004145852756f,
    0.00413125474f,    0.004049625248f,   0.003905905643f,   0.003704900853f,
    0.00345301209f,    0.003156311577f,   0.002822061069f,   0.002457238268f,
    0.002068829956f,   0.001665653544f,   0.001251969952f,   0.0008386967238f,
    0.0004301121517f,  3.207824193e-05f,  -0.0003474208061f, -0.00070385047f,
    -0.001032887027f,  -0.001330877072f,  -0.001593292691f,  -0.001817821641f,
    -0.002002278809f,  -0.002146301325f,  -0.002248884644f,  -0.002310532611f,
    -0.002331318334f,  -0.002313192002f,  -0.002257786226f,  -0.002168231178f,
    -0.002046865411f,  -0.001897459268f,  -0.001722955029f,  -0.001527603134f,
    -0.001314683235f,  -0.001088955207f,  -0.000853834732f,  -0.0006139134057f,
    -0.0003724064736f, -0.0001335729467f, 9.991019033e-05f,  0.0003243022948f,
    0.0005372641608f,  0.0007358249859f,  0.0009182369104f,  0.001082253992f,
    0.001226948923f,   0.001350906445f,   0.001454023994f,   0.00153552962f,
    0.001596169546f,   0.001635767752f,   0.001655626693f,   0.001656142762f,
    0.001639141934f,   0.001605384634f,   0.001557081006f,   0.001495413715f,
    0.001422821078f,   0.001340582385f,   0.001251217443f,   0.001156042097f,
    0.00105746265f,    0.0009566077497f,  0.0008557052352f,  0.0007556059863f,
    0.0006585246301f,  0.0005492189666f,  0.001551611349f,   2.171816595e-05f
};
